define(["jquery","template","bch/template/visit/visitAppointList.tpl"],function($,template,tpl){
	var ui = {};

	var drawVisitConfirmWrap = function(data){
		return template("tpl_visitAppointList_visitConfirmWrap",data);
	}
	var drawWarn = function(data){
		return template("tpl_visitAppointList_warn",data);
	}

	ui.visitConfirmWrap = function(options){
		options.dom.html(tpl.visitConfirmWrap());
		var html = drawVisitConfirmWrap();
		options.dom.html(html);
	}
	ui.warn = function(options){
		$("#"+options.id).html(tpl.warn());
		var html = drawWarn(options);
		$("#"+options.id).html(html);
	}

	return ui;
});